<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

		<meta name="language" content="en" />
		<meta name="description" content="CMS" />
		<meta name="author" content="buianhkhoa.com" />

		<!--  Mobile viewport optimized: j.mp/bplateviewport -->
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		
		<link rel="stylesheet" type="text/css" href="<?php echo root_url() ?>data/admin/screen.css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="<?php echo root_url() ?>data/admin/main.css" />
	   <link rel="stylesheet" type="text/css" href="<?php echo root_url() ?>data/admin/buttons.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo root_url() ?>data/admin/messages.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo root_url() ?>data/admin/form.css" />		
    <link rel="stylesheet" type="text/css" href="<?php echo root_url() ?>data/admin/grid.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo root_url() ?>data/admin/pager.css" />
<?php 
    // javascript include
    if (isset($style) && is_array($style)) {
        foreach ($style as $f) {
echo '<link rel="stylesheet" type="text/css" href="/data/css/'.$f.'" />
'; 
        }
    }
?>
<?php $title = isset($title) ? $title : 'untitle'; ?>
<title> <?php echo $title ?></title>
	</head>

	<body id="admins_index">

		<div class="container" id="page">

			<div id="header" class="clearfix">
				<a href="<?php echo root_url() ?>" title=" CMS" id="logo"> CMS</a>
								<div id="loggedUser">
					<ul>
						<li>Logged as: <a id="username" href="<?php echo site_url('users/changepass') ?>">
              <?php echo $this->auth_model->username(); ?></a></li>
						<li>
							
              <a href="<?php echo site_url('auth/logout'); ?>">Logout</a>

						</li>
					</ul>
				</div>
							</div><!-- header -->

			<div id="mainmenu" class="clearfix">
				<ul id="yw3">
<?php  
$uri = $this->uri->segment(2);
$acti = 'class="active"';
 ?>                 
        <li <?php if ($uri == 'users') echo $acti ?>><a href="<?php echo site_url('users') ?>">List user</a></li>
        <li <?php if ($uri == 'news_types') echo $acti ?>><a href="<?php echo site_url('news_types') ?>">News category</a></li>
      </ul>			
      </div><!-- mainmenu -->
			<div class="breadcrumbs"><?php if (isset($breakCrum)) echo $breakCrum; ?></div><!-- breadcrumbs -->

<?php
if (isset($content)) echo $content;

 ?>			

			
		</div><!-- page -->
<script type="text/javascript" src="/data/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/data/js/l10n.js"></script>
<script type="text/javascript" src="/data/js/util.js"></script>
<?php 
    // javascript include
    if (isset($script) && is_array($script)) {
        foreach ($script as $f) {
echo '<script type="text/javascript" src="/data/js/'.$f.'"></script>
'; 
        }
    }
 ?> 
<script type="text/javascript" src="/data/js/start.js"></script>
<?php 
if (isset($popup)) {
    echo $popup;
}
 ?>
</body>
</html>